package de.justphil.tcg.tcgserver.commons.util;

import java.util.concurrent.atomic.AtomicLong;

public class AtomicIdGenerator {
	
	private static final AtomicLong gen = new AtomicLong(0);
	
	private static final AtomicLong gameGen = new AtomicLong(0);
	
	public static long nextId() {
		return gen.incrementAndGet();
	}
	
	public static long nextGameId() {
		return gameGen.incrementAndGet();
	}

}
